#include "gameobjectseditorwidget.h"
#include "ui_gameobjectseditorwidget.h"

GameObjectsEditorWidget::GameObjectsEditorWidget(QPointer<Modes::EditorMode> oem, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::GameObjectsEditorWidget)
{
    ui->setupUi(this);
	// pass it to the tree widget
	ui->gameObjectsTreeWidget->setObjectEditorMode(oem);
}

GameObjectsEditorWidget::~GameObjectsEditorWidget()
{
    delete ui;
}